package com.luckku.boot.model.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;
import lombok.experimental.Accessors;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;

/**
 *
 * @author  luckku
 * @date 2021-12-12
 */

@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName ( "coupon" )
public class Coupon  implements Serializable {


	/**
	 * 优惠券id
	 */
   	@TableId(value = "coupon_id" )
	private String couponId;

	/**
	 * 优惠券名称
	 */
   	@TableField(value = "title" )
	private String title;

	/**
	 * 抵扣金额
	 */
   	@TableField(value = "discount" )
	private Long discount;

	/**
	 * 起用金额
	 */
   	@TableField(value = "threshold" )
	private Long threshold;

	/**
	 * 起用时间
	 */
   	@TableField(value = "start_time" )
	private Date startTime;

	/**
	 * 失效时间
	 */
   	@TableField(value = "end_time" )
	private Date endTime;

	/**
	 * 优惠券状态0可用，1失效
	 */
   	@TableField(value = "coupon_state" )
	private Long couponState;

	/**
	 * 优惠券剩余可领数量
	 */
   	@TableField(value = "remain_num" )
	private Long remainNum;
}
